package com.fbt.andon.tool;

import com.fbt.andon.controller.DaysController;
import com.fbt.andon.domain.Days;
import com.fbt.andon.domain.dto.Flag;
import com.fbt.andon.mapper.DaysMapper;
import com.fbt.andon.service.impl.DaysServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;
import java.io.IOException;
import java.text.ParseException;
import java.util.concurrent.TimeoutException;
@Component
public class Test {

    public static void main(String[] args) throws IOException, TimeoutException, ParseException {
        Direct direct = new Direct("127.0.0.1", "guest", "guest", 5672, "/");
        direct.bindingQueue("feng","wyj","tao");
        direct.PublishAckMassage("feng","tao","<line>   <string>2021-10-30</string> <Integer1>23</Integer1>  <Integer2>10</Integer2>   </line>");
//        direct.Consume("wyj");
//        System.out.println(wyj.getDays());

    }
}
